package xyhoo.springframework.beans.factory.parsing;

import xyhoo.springframework.beans.BeanMetadataElement;
import xyhoo.springframework.core.io.Resource;
import xyhoo.springframework.util.Assert;

public class ImportDefinition implements BeanMetadataElement {

    private final String importedResource;

    private final Resource[] actualResources;

    private final Object source;

    public ImportDefinition(String importedResource, Resource[] actualResources, Object source) {
        Assert.notNull(importedResource, "Imported resource must not be null");
        this.importedResource = importedResource;
        this.actualResources = actualResources;
        this.source = source;
    }
}
